import React from 'react';
import './App.less/Home.less'
import './App.less/Category.less'
import './App.less/Mypage.less'
import 'react-virtualized/styles.css'
import Layout from './views/Layout/index'
import NotFound from './views/NotFound'
import Login from './views/Login/index'
import GoodsDetail from './views/GoodsDetail/index'
import SearchList from './views/LongList/index'
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'

function App() {
  return (
    <Router>
      <Switch>
        <Route path="/login" component={Login}/>
        <Route path='/goodde' component={GoodsDetail}/>
        <Route path='/search' component={SearchList}/>
        <Route path="/" component={Layout} />
        <Route path="*" component={NotFound} />
      </Switch>
    </Router>
  )
}

export default App;
